/**   
* @Title: RetResult.java
* @Package org.xaoyaoyao.cloud.common.rsp
* @Description: TODO
* @author xaoyaoyao
* @date 2018年9月27日 上午9:35:01
* @version V1.0   
*/
package org.xaoyaoyao.cloud.common.rsp;

import java.io.Serializable;

import org.xaoyaoyao.cloud.common.constant.Constants;
import org.xaoyaoyao.cloud.common.result.RetCode;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Data;

/**
 * @ClassName: RetResult
 * @Description: TODO
 * @author xaoyaoyao
 * @date 2018年9月27日 上午9:35:01
 * 
 */
@Data
public class RetResult<T> implements Serializable {

	private static final long serialVersionUID = -6872298141244453745L;

	public int code;

	private String msg;

	@JSONField(serialize = false, deserialize = false)
	private String err;

	private T data;

	@JSONField(serialize = false, deserialize = false)
	private Object[] objs;

	public RetResult() {
		super();
		this.code = RetCode.SUCESS;
		this.msg = Constants.SUCCESSFUL;
	}
}
